From: Rui Matos Date: Wed, 4 Mar 2015 17:58:14 +0000 (+0100) Subject: appDisplay: Don't call a non-existent onComplete X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1570 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4ff489d24b4ee3b72615d0b938dca429db77c9cc;p=gnome-shell.git appDisplay: Don't call a non-existent onComplete Follow up to commit 6bb905895c932db51ff0314fecec765f2f703f31 . https://bugzilla.gnome.org/show_bug.cgi?id=745627 --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index e1ff13a17..f83594693 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -544,7 +544,8 @@ const AllView = new Lang.Class({ this._scrollView.reactive = false; let completionFunc = Lang.bind(this, function() { this._scrollView.reactive = true; - onComplete(); + if (onComplete) + onComplete(); }); if (animationDirection == IconGrid.AnimationDirection.OUT &&